Skip to contentSkip to conversation

Suspend to disk deadlocks system on resume always (Linus master + drm-next-4.9-wip)

Bug 97123 [email protected] 1 participant 7 messages Jul 29, 2016 – Oct 31, 2016

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=97123

Bug ID: 97123
Summary: [AMDGPU][CIK] Suspend to disk deadlocks system on
resume always (Linus master + drm-next-4.9-wip)
Product: DRI
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: DRM/AMDgpu
Assignee: [email protected]
Reporter: [email protected]

I've been testing AMDGPU with CIK (Bonaire), in drm-next-4.8-wip / drm-next-4.8, hibernation sometime worked sometime not.

With drm-next-4.9-wip (with Linus master merged), hibernation works, resume fails after image is loaded, system is deadlocked.

Is there any debugging I can do testing path?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=97123

--- Comment #1 from Shawn Starr <[email protected]> --- Created attachment 125989
--> https://bugs.freedesktop.org/attachment.cgi?id=125989&action=edit
corruption seen during freeze() in hibernation

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97123

--- Comment #2 from Shawn Starr <[email protected]> --- With latest patches:
[PATCH 3/3] drm/amdgpu: reset the asic when hibernating v2

I am not noticing deadlock on resume, still continue to test.

When hibernating the first time, no corruption occurs on freeze state of display, subsequent hibernations show same corruption pattern on freeze.

When resuming no such corruption shows once the GPU finishes init and we resume successfully.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97123

--- Comment #3 from Shawn Starr <[email protected]> --- [PATCH 2/3] drm/amd/amdgpu: sdma resume fail during S4 on CI [PATCH 3/3] drm/amd/amdgpu: compute ring test fail during S4 on CI

With patch #2 specifically not upstream yet, the corruption with the image attached is now gone on subsequent freeze()/thaw() cycles.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97123

--- Comment #4 from Shawn Starr <[email protected]> --- Still had a lockup during a freeze() --> Reboot cycle

Will try patch:
[PATCH v2] drm/amd/amdgpu: S4 issue for amdgpu

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97123

--- Comment #5 from Shawn Starr <[email protected]> --- [PATCH v2] drm/amd/amdgpu: S4 issue for amdgpu - Works

Still have corruption on freeze() but its non-fatal for thaw() on resume from reboot hibernation.

Will Continue to test additional patches, no lockups so far.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97123

Shawn Starr <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Shawn Starr <[email protected]> --- The original issue is fixed, but a new regression so new bug being filed.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel